package com.ruoyi.system.domain.webgroup;

import com.alibaba.fastjson2.JSON;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**统计每次打卡时间段表*/
public class ClockCount extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**此表的主键*/
    private Integer clockCountId;
    /**记录一次打卡时间段*/
    @JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="HH:mm:ss")
    @Excel(name="打卡时长")
    private Date clockCountDatetime;



    /**记录当前时间年月日*/
    @Excel(name = "年月日")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date clockCountDate;
    /**用户id*/
    private Integer userId;

    public ClockCount(Integer clockCountId, Date clockCountDatetime, Date clockCountDate, Integer userId) {
        this.clockCountId = clockCountId;
        this.clockCountDatetime = clockCountDatetime;
        this.clockCountDate = clockCountDate;
        this.userId = userId;
    }

    public ClockCount() {
    }

    public Integer getClockCountId() {
        return clockCountId;
    }

    public void setClockCountId(Integer clockCountId) {
        this.clockCountId = clockCountId;
    }

    public Date getClockCountDatetime() {
        return clockCountDatetime;
    }

    public void setClockCountDatetime(Date clockCountDatetime) {
        this.clockCountDatetime = clockCountDatetime;
    }

    public Date getClockCountDate() {
        return clockCountDate;
    }

    public void setClockCountDate(Date clockCountDate) {
        this.clockCountDate = clockCountDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
